package com.cb.orderservice.client;

import com.cb.utils.ordervo.CourseWebOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author cb
 * @version 1.0
 * @date 2020/6/29 21:54
 */
@Component
@FeignClient(name = "service-edu")
public interface EduClient {

    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{courseId}")
    CourseWebOrderVo getCourseInfoOrder(@PathVariable("courseId") String courseId);

}
